package com.pi.wms.repository;





import com.pi.framework.core.repository.IBaseRepository;
import com.pi.wms.entity.TblLedMessage;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface LedMessageRepository extends IBaseRepository<TblLedMessage, Long>{

	@Query("from TblLedMessage where code=:code ")
	List<TblLedMessage> findByCode(@Param("code") String code);

    @Query("from TblLedMessage where fullCode=:fullCode ")
    TblLedMessage findByFullcode(@Param("fullCode") String fullCode);

    @Query("from TblLedMessage where divisionId=:divisionId and code=:code ")
    TblLedMessage findByDivisionIdAndCode(@Param("divisionId") Long divisionId, @Param("code") String code);

}
